
<%@ page import="cn.gudian.cms.Comment.Comment" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title><g:message code="comment.create" default="Create Comment" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home" /></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="comment.list" default="Comment List" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="comment.create" default="Create Comment" /></h1>
            <g:if test="${flash.message}">
            <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
            </g:if>
            <g:hasErrors bean="${commentInstance}">
            <div class="errors">
                <g:renderErrors bean="${commentInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="mode"><g:message code="comment.mode" default="Mode" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: commentInstance, field: 'mode', 'errors')}">
                                    <g:select name="mode" from="${commentInstance.constraints.mode.inList}" value="${commentInstance.mode}" valueMessagePrefix="comment.mode"  />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="modeID"><g:message code="comment.modeID" default="Mode ID" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: commentInstance, field: 'modeID', 'errors')}">
                                    <g:textField name="modeID" value="${fieldValue(bean: commentInstance, field: 'modeID')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name"><g:message code="comment.name" default="Name" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: commentInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" value="${fieldValue(bean: commentInstance, field: 'name')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="contact"><g:message code="comment.contact" default="Contact" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: commentInstance, field: 'contact', 'errors')}">
                                    <g:textField name="contact" value="${fieldValue(bean: commentInstance, field: 'contact')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="content"><g:message code="comment.content" default="Content" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: commentInstance, field: 'content', 'errors')}">
                                    <g:textField name="content" value="${fieldValue(bean: commentInstance, field: 'content')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="subTime"><g:message code="comment.subTime" default="Sub Time" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: commentInstance, field: 'subTime', 'errors')}">
                                    <g:datePicker name="subTime" value="${commentInstance?.subTime}"  />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="audit"><g:message code="comment.audit" default="Audit" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: commentInstance, field: 'audit', 'errors')}">
                                    <g:checkBox name="audit" value="${commentInstance?.audit}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="reName"><g:message code="comment.reName" default="Re Name" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: commentInstance, field: 'reName', 'errors')}">
                                    <g:textField name="reName" value="${fieldValue(bean: commentInstance, field: 'reName')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="reContet"><g:message code="comment.reContet" default="Re Contet" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: commentInstance, field: 'reContet', 'errors')}">
                                    <g:textField name="reContet" value="${fieldValue(bean: commentInstance, field: 'reContet')}" />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="reTime"><g:message code="comment.reTime" default="Re Time" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: commentInstance, field: 'reTime', 'errors')}">
                                    <g:datePicker name="reTime" value="${commentInstance?.reTime}"  />

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="ip"><g:message code="comment.ip" default="Ip" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: commentInstance, field: 'ip', 'errors')}">
                                    <g:textField name="ip" value="${fieldValue(bean: commentInstance, field: 'ip')}" />

                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'create', 'default': 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
